package com.qfmy.model.entity.listenBook;

import com.qfmy.model.entity.user.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.audio
 * @date 2025/11/01
 * @description 音频评分评论表实体类（映射数据库audio_rating表）
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AudioRating extends BaseEntity {

    @Schema(description = "评分ID（主键）")
    private Long ratingId;

    @Schema(description = "用户ID（关联user表）")
    private Integer userId;

    @Schema(description = "音频ID（关联audio_resource表）")
    private Long audioId;

    @Schema(description = "评分（1-5分）")
    private Integer score;

    @Schema(description = "评论内容（可选，默认null）")
    private String comment;
}